cmake_minimum_required(VERSION 3.23)

project(rnm)

set(PRJ_EXE ${PROJECT_NAME})
set(PRJ_LIBRARIES libglfw3.a libassimp.dll.a)

include_directories(${PROJECT_SOURCE_DIR}/include)

link_directories(${PROJECT_SOURCE_DIR}/Libs)

aux_source_directory(${PROJECT_SOURCE_DIR}/src CPP_FILES)

add_executable(${PRJ_EXE} ${CPP_FILES})
target_link_libraries(${PRJ_EXE} ${PRJ_LIBRARIES})

install(TARGETS ${PRJ_EXE} RUNTIME DESTINATION ${PROJECT_SOURCE_DIR}/bin)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/img ${PROJECT_SOURCE_DIR}/shaders ${PROJECT_SOURCE_DIR}/model DESTINATION ${PROJECT_SOURCE_DIR}/bin)
install(PROGRAMS Libs/libassimp-5.dll Libs/zlib1.dll src/mapping.txt DESTINATION ${PROJECT_SOURCE_DIR}/bin)